package dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface BaseDao<T>{
    void insert(T t, Connection conn) throws SQLException;

    void delete(T t,Connection conn) throws SQLException;

    void update(T t,Connection conn) throws SQLException;

    public List<T> queryMany(String sql, Class<T> cls, Object... args);


    public T queryOne(String sql, Class<T> cls, Object... args);

   // List<T> queryAll(T a ,Connection conn) throws SQLException;


}
